package whf.shop.service;

import whf.framework.exception.ServiceNotFoundException;
import whf.framework.util.BeanFactory;
import whf.shop.dao.OrderDAO;
import whf.shop.entity.Order;

/**
 * 服务对象具体实现，委托相应的dao对象实现相关操作
 * 
 * @author wanghaifeng
 * @email king@126.com
 * @modify 2007-01-11
 */
public class OrderServiceImp extends whf.framework.service.ServiceImp<Order> implements
		OrderService {

	private OrderDAO orderDAO;

	public void setOrderDAO(OrderDAO orderDAO) {
		this.orderDAO = orderDAO;
	}

	public static OrderService getOrderService()
			throws ServiceNotFoundException {
		return (OrderService) BeanFactory.getService(OrderServiceImp.class);
	}

}